#include "stdafx.h"
#include "resource.h"
#include "LineDlg.h"

LRESULT CLineDlg::OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
{
	CenterWindow(GetParent());

	m_edtLine = GetDlgItem(IDC_EDT_LINE);
	m_edtLine.SetWindowText(m_strLine);

	return TRUE;
}

LRESULT CLineDlg::OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
{
	m_edtLine.GetWindowText(m_strLine);

	EndDialog(wID);
	return 0;
}

void CLineDlg::SetString(const kwchar* str)
{
	m_strLine = str;
}

